package com.kaishengit.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaishengit.core.service.BaseService;
import com.kaishengit.pojo.Event;
import com.kaishengit.pojo.EventDiscuss;


@Service
@Transactional
public class EventDiscussService extends BaseService {

	public List<EventDiscuss> findAll() {
	
		return getEventDiscussDao().findAll();
	}

	public void save(EventDiscuss ev, Event event) {
		
		ev.setEvent(event);
		getEventDiscussDao().save(ev);
	}

	public EventDiscuss findById(int id) {
	
		return getEventDiscussDao().findById(id);
	}

	public void del(EventDiscuss ecs) {
		
		getEventDiscussDao().del(ecs);
	}
	
	
	

}
